package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;
import com.rockcent.mall.lib.domain.Evaluation;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

/**
 * Created by zhangjh on 2016/10/13.
 */
public class EvaluationDto extends DtoEntity {
    /**评论*/
    private String comment;
    /**评论用户名*/
    private String commentCustomerName;
    /**评论用户ID*/
    private Long customerId;
    /**用户头像*/
    private String headImgUrl;
    /**是否匿名*/
    private Boolean isHideName = true;
    /**商户ID*/
    private Long merchantId;
    /**产品ID*/
    private Long productId;
    /**产品名*/
    private String productName ;
    /**评价等级 1-5*/
    private Integer rangeStar;

    private List<Evaluation> evaluationList;

    private Long merchantOrderId;

    /**产品类型*/
    private String productType;

    //开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String beginDate;

    //结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String endDate;

    /**
     * 统计类型（昨天 YESTERDAY,近一周 WEEK,最近一个月 MONTH）
     */
    private String statisticsType;

    //产品id 产品名称/订单编号
    private String keyword;

    //商家订单号
    private String merchantOrderNum;

    public Long getMerchantOrderId() {
        return merchantOrderId;
    }

    public void setMerchantOrderId(Long merchantOrderId) {
        this.merchantOrderId = merchantOrderId;
    }

    public List<Evaluation> getEvaluationList() {
        return evaluationList;
    }

    public void setEvaluationList(List<Evaluation> evaluationList) {
        this.evaluationList = evaluationList;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getCommentCustomerName() {
        return commentCustomerName;
    }

    public void setCommentCustomerName(String commentCustomerName) {
        this.commentCustomerName = commentCustomerName;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public Boolean getHideName() {
        return isHideName;
    }

    public void setHideName(Boolean hideName) {
        isHideName = hideName;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getRangeStar() {
        return rangeStar;
    }

    public void setRangeStar(Integer rangeStar) {
        this.rangeStar = rangeStar;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getStatisticsType() {
        return statisticsType;
    }

    public void setStatisticsType(String statisticsType) {
        this.statisticsType = statisticsType;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getMerchantOrderNum() {
        return merchantOrderNum;
    }

    public void setMerchantOrderNum(String merchantOrderNum) {
        this.merchantOrderNum = merchantOrderNum;
    }

    @Override
    public String toString() {
        return "EvaluationDto{" +
                "comment='" + comment + '\'' +
                ", commentCustomerName='" + commentCustomerName + '\'' +
                ", customerId=" + customerId +
                ", headImgUrl='" + headImgUrl + '\'' +
                ", isHideName=" + isHideName +
                ", merchantId=" + merchantId +
                ", productId=" + productId +
                ", productName='" + productName + '\'' +
                ", rangeStar=" + rangeStar +
                ", evaluationList=" + evaluationList +
                ", merchantOrderId=" + merchantOrderId +
                ", productType='" + productType + '\'' +
                ", beginDate='" + beginDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", statisticsType='" + statisticsType + '\'' +
                ", keyword='" + keyword + '\'' +
                ", merchantOrderNum='" + merchantOrderNum + '\'' +
                '}';
    }
}
